<?php
extract ($data);
$this->Tree->addItemAttribute('class', 'item'); // highlight this li
$url = ($Submenu['slug'] != '/' && $Submenu['slug'] != "") ? array('plugin'=>false,'controller'=>false,'action'=>$Submenu['slug']) : $Submenu['slug'];
echo $this->Html->link($Submenu['name'], $this->Html->url($url,true),array('title'=>$Submenu['name']));